{extend name="vehicle@common/base" /} {block name="leftmenu"}{include
file="common/leftMenu" /} {/block}{block name="main"}
<style>
.data-tr {
	cursor: pointer;
}
</style>
<div class="htmltitle">
	<h2>{$title|default='欢迎使用'}</h2>
	<p>{$msg|default=""}</p>
</div>
{notempty name="istodo" }
<script>
function refresh() {
	history.go(0);
}
setTimeout('refresh()', 60000);
</script>
{/notempty}
<div id="view">
	{if condition="count($list) gt 0"}
	<div class="table-responsive">
		<!-- <form method="post" action="detail.html"> 
		<input id="ddd" name='ddd' type="text" style='display: none;'>-->
		<table class="table table-hover table-bordered" id='viewTable'>
			<tbody>
				<tr>
					<th class="td-id">单号</th>
					<th class="td-status">状态</th>
					<th class="td-des">目的地</th>
					<th class="td-reson">事由</th>
					<th class="td-user">用车人</th>
					<th class="td-time">申请时间</th>
				</tr>
				{volist name="list" id="data"}
				<tr id="{$data.id}" data-volistId="{$i}" class='data-tr'>
					<td class="td-id">tl-{$data.id}</td>
					<td class="td-status">{$data.statusText}</td>
					<td class="td-des">{$data.destination}</td>
					<td class="td-reson">{$data.reson}</td>
					<td class="td-user">{$data.userName}</td>
					<td class="td-time">{$data.creTime}</td>
				</tr>
				{/volist}
			</tbody>
		</table>
		<!-- </form> -->
	</div>
	{$page} {else /}
	<div style="color: blue; padding-left: 200px;">
		<h3>暂无</h3>
	</div>
	{/if}
</div>
<script>
	$("#viewTable tr.data-tr").click(function() {
		location.href = 'detail.html?d=' + $(this).attr('id');
	});
</script>
{/block}
